const router = require("koa-router")({
  prefix: "/api/user"
});
const controllers = require("../controllers/user");
/**
 * @swagger
 * resourcePath: /api
 * description: All about API
 */

// 登录
router.post("/login", controllers["login"]);
// 获取用户信息
router.post("/get-info", controllers["get-info"]);
// 获取用户信息
router.post("/get-user-list", controllers["get-user-list"]);
// 新增用户
router.post("/add-user", controllers["signin"]);
// 修改用户状态
router.post("/change-status", controllers["change-status"]);

module.exports = router;
